﻿using System.Data.EntityClient;
using System.Data.Objects;
using Model;

namespace Configuration
{
    public class Database : ObjectContext
    {
        public Database(EntityConnection connection)
            : base(connection)
        {
            //DefaultContainerName = "Model";
        }

        public ObjectSet<User> User
        {
            get { return base.CreateObjectSet<User>(); }
        }

        public ObjectSet<Information> Information
        {
            get { return base.CreateObjectSet<Information>(); }
        }

        public ObjectSet<tkntProduct> tkntProduct
        {
            get { return base.CreateObjectSet<tkntProduct>(); }
        }

        public ObjectSet<tkntImage> tkntImage
        {
            get { return base.CreateObjectSet<tkntImage>(); }
        }

        public ObjectSet<tkntCategory> tkntCategory
        {
            get { return base.CreateObjectSet<tkntCategory>(); }
        }
    }
}